package com.springboot.service;

import java.io.File;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.IOException;

import java.math.BigDecimal;

import java.text.SimpleDateFormat;

import java.util.HashMap;

import java.util.Map;

import java.util.ArrayList;

import java.util.Calendar;

import java.util.Collections;

import java.util.Date;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;

import org.apache.commons.logging.LogFactory;

import com.springboot.dao.FurnitureMapper;

import com.springboot.entity.Furniture;

import com.springboot.entity.FurnitureExample;

import com.springboot.entity.*;
import com.springboot.dao.*;
import com.springboot.entity.Category;

import com.springboot.entity.CategoryExample;

import com.springboot.dao.CategoryMapper;

import com.springboot.dao.FurniturepinglunMapper;
import com.springboot.entity.FurniturepinglunExample;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;

import org.springframework.web.multipart.MultipartFile;

public interface FurnitureServiceImp {


    //定义方法addfurniture接口,响应控制层添加家具请求

    public void addfurniture(HttpServletRequest request, HttpSession session);


    //定义addfurnitureact接口

    public void addfurnitureact(HttpServletRequest request, HttpSession session, Furniture furniture, MultipartFile imgfile) throws IOException; //定义addfurnitureactjson接口

    public void addfurnitureactjson(Furniture furniture) throws IOException;


    //定义furnituremanage方法响应页面请求

    public void furnituremanage(HttpServletRequest request, HttpSession session);


    // 定义 furnitureview方法

    public void furnitureview(HttpServletRequest request, HttpSession session);


    // 定义 updatefurniture方法

    public void updatefurniture(HttpServletRequest request, HttpSession session, int id);


    // 定义updatefurnitureact处理家具修改

    public void updatefurnitureact(HttpServletRequest request, Furniture furniture, HttpSession session, MultipartFile imgfile) throws IOException; // 定义updatefurnitureactjson处理家具修改

    public void updatefurnitureactjson(Furniture furniture) throws IOException;


    // 定义deletefurniture,处理删除家具

    public void deletefurniture(HttpServletRequest request, HttpSession session, int id);


    // 定义searchfurniture方法，处理搜索操作

    public void searchfurniture(HttpServletRequest request, HttpSession session, String search);


    // 定义searchfurniturejson方法，处理搜索操作

    public Map searchfurniturejson(String search);


    // 定义FurniturepinglunMapper

    public void furnituredetails(HttpServletRequest request, HttpSession session, int id);


    // 定义Furniture详情方法

    public Map furnituredetailsjson(int id);


}

